package com.peanut.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.peanut.domain.bo.TabCouponBO;
import com.peanut.domain.bo.TabUserCouponBO;
import com.peanut.domain.po.TabCouponPO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 张涛
* @description 针对表【tab_coupon】的数据库操作Service
* @createDate 2022-05-27 10:18:45
*/
public interface TabCouponService extends IService<TabCouponPO> {

    int addCoupon(TabCouponBO bo);

    Page<TabCouponPO> findAll(Integer pageNumber, Integer pageSize);

    int updateCoupon(TabCouponBO bo);

    int deleteById(Long couponId);

    int getUserIdFindCoup(TabUserCouponBO userCouponBO, TabCouponBO bo);

    int deleteByUserCouponAndCoupon(Long couponId);
}
